package com.verssor.data.daos;

import com.verssor.data.dtos.TurnoPorChoferDTO;
import com.verssor.model.Turno;

import javax.persistence.Query;
import java.util.List;


public class TurnoDao extends DaoBase<Turno> {
    
    
    public List<TurnoPorChoferDTO> getTotalesPorTurnoYChofer(){
        Query query = em.createNativeQuery("select  from  ",TurnoPorChoferDTO.class);
        return query.getResultList();
    }
}
